import http from '../utils/request'

//登录
function login(userName: string, password: String) {
  return http({
    url: '/api/v1/auth/manager_login',
    method: 'post',
    data: {
      userName,
      password,
    },
  })
}
//获取管理员列表
function adminList() {
  return http({
    url: '/api/v1/auth/manager_info',
    method: 'get',
  })
}

export { login, adminList }
